package com.study.happystudy.service;

import com.study.happystudy.po.User;

import java.util.List;

public interface UserService {
    User Login(String phone, String userpassword);

    int upUserPwd(String phone, String userpassword);

    int register(String type, String name,
                 String phone, String password, String institution,char gender);

    boolean updateUser(String nickname,String headPortrait,String introduction,int age,String institution,char gender,int id);
    boolean deleteUser(Integer id);
    List<User> findUserBySearchTerm(String searchTerm);
    User findUserById(Integer id);
    void updatePoints(Integer id, Integer points);
}
